package com.shenzhen.group.common.card.operation;

import com.shenzhen.group.common.entity.HandCardGroupBase;
import com.shenzhen.group.common.enumeration.CardCompareEnum;
import com.shenzhen.group.common.result.CardResult;

/**
 * 牌计算大小
 * @author 周赛波
 * @version v1.0.0
 * @date 2021/9/20 12:08
 */
public interface CardCalculate {
    /**
     * 计算手牌大小
     * @return java.lang.Enum
     * @author 周赛波
     * @date 2021/9/20 12:14
     */
    CardResult calculateHandCardGroup();

    /**
     * 对手牌升序排序
     * @return com.shenzhen.group.common.entity.HandCardGroupBase
     * @author 周赛波
     * @date 2021/9/20 12:16
     */
    HandCardGroupBase sortCardByAsc(HandCardGroupBase cardGroup);

    /**
     * 对手牌降序排序
     * @return com.shenzhen.group.common.entity.HandCardGroupBase
     * @author 周赛波
     * @date 2021/9/20 12:16
     */
    HandCardGroupBase sortCardByDesc(HandCardGroupBase cardGroup);

    /**
     * 比较牌大小
     * @param card1 牌组1
     * @return java.lang.Enum
     * @author 周赛波
     * @date 2021/9/20 12:46
     */
    CardCompareEnum compareCard(HandCardGroupBase card1);


}
